home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / libs / f2c / src / sysdep.h < prev    next >
C/C++ Source or Header  |  1994-05-06  |  3KB  |  95 lines

  1. /****************************************************************
  2. Copyright 1990, 1991, 1994 by AT&T Bell Laboratories, Bellcore.
  3.  
  4. Permission to use, copy, modify, and distribute this software
  5. and its documentation for any purpose and without fee is hereby
  6. granted, provided that the above copyright notice appear in all
  7. copies and that both that the copyright notice and this
  8. permission notice and warranty disclaimer appear in supporting
  9. documentation, and that the names of AT&T Bell Laboratories or
  10. Bellcore or any of their entities not be used in advertising or
  11. publicity pertaining to distribution of the software without
  12. specific, written prior permission.
  13.  
  14. AT&T and Bellcore disclaim all warranties with regard to this
  15. software, including all implied warranties of merchantability
  16. and fitness.  In no event shall AT&T or Bellcore be liable for
  17. any special, indirect or consequential damages or any damages
  18. whatsoever resulting from loss of use, data or profits, whether
  19. in an action of contract, negligence or other tortious action,
  20. arising out of or in connection with the use or performance of
  21. this software.
  22. ****************************************************************/
  23.  
  24. /* This file is included at the start of defs.h; this file
  25.  * is an initial attempt to gather in one place some declarations
  26.  * that may need to be tweaked on some systems.
  27.  */
  28.  
  29. #ifdef __STDC__
  30. #ifndef ANSI_Libraries
  31. #define ANSI_Libraries
  32. #endif
  33. #ifndef ANSI_Prototypes
  34. #define ANSI_Prototypes
  35. #endif
  36. #endif
  37.  
  38. #ifdef __BORLANDC__
  39. #define MSDOS
  40. #endif
  41.  
  42. #ifdef __ZTC__    /* Zortech */
  43. #define MSDOS
  44. #endif
  45.  
  46. #ifdef MSDOS
  47. #define ANSI_Libraries
  48. #define ANSI_Prototypes
  49. #define LONG_CAST (long)
  50. #else
  51. #define LONG_CAST
  52. #endif
  53.  
  54. #include <stdio.h>
  55.  
  56. #ifdef ANSI_Libraries
  57. #include <stddef.h>
  58. #include <stdlib.h>
  59. #else
  60. char *calloc(), *malloc(), *memcpy(), *memset(), *realloc();
  61. typedef int size_t;
  62. #ifndef atol
  63.     long atol();
  64. #endif
  65.  
  66. #ifdef ANSI_Prototypes
  67. extern double atof(const char *);
  68. extern double strtod(const char*, char**);
  69. #else
  70. extern double atof(), strtod();
  71. #endif
  72. #endif
  73.  
  74. /* On systems like VMS where fopen might otherwise create
  75.  * multiple versions of intermediate files, you may wish to
  76.  * #define scrub(x) unlink(x)
  77.  */
  78. #ifndef scrub
  79. #define scrub(x) /* do nothing */
  80. #endif
  81.  
  82. /* On systems that severely limit the total size of statically
  83.  * allocated arrays, you may need to change the following to
  84.  *    extern char **chr_fmt, *escapes, **str_fmt;
  85.  * and to modify sysdep.c appropriately
  86.  */
  87. extern char *chr_fmt[], escapes[], *str_fmt[];
  88.  
  89. #include <string.h>
  90.  
  91. #include "ctype.h"
  92.  
  93. #define Table_size 256
  94. /* Table_size should be 1 << (bits/byte) */
  95.